package com.telit.uav.dto;

import com.telit.uav.entity.CommTeam;
import com.telit.upms.vo.MicroSysUserAllInfoVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Set;


/**
 * @Auther amy
 * @Describe 队伍扩展类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TeamDTO extends CommTeam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "队伍总人数")
    private int personCount;

    @ApiModelProperty(value = "队长姓名")
    @NotBlank(message = "队长姓名不能为空")
    private String leaderName;

    @ApiModelProperty(value = "成员id集合(返回给前端回显使用)")
    private Set<Long> memberIdList;

    @ApiModelProperty(value = "成员集合,对象数组,对象参数是name和userId(前端添加或修改成员需要传的参数)")
    private Set<TeamMemberDTO> teamMemberList;

    @ApiModelProperty(value = "队长信息")
    private MicroSysUserAllInfoVo leaderInfo;
}
